from CalendarApp.models import User, Userparams, Tasks, Types, Colors, User_Task
from rest_framework import viewsets
from CalendarApp.serializers import UsersSerializer, TasksSerializer, TypesSerializer, UserparamsSerializer, ColorsSerializer, UserTaskSerializer


class ColorsViewSet(viewsets.ModelViewSet):
    queryset = Colors.objects.all()
    serializer_class = ColorsSerializer


class UserViewSet(viewsets.ModelViewSet):
    queryset = User.objects.all()
    serializer_class = UsersSerializer


class TypesViewSet(viewsets.ModelViewSet):
    queryset = Types.objects.all()
    serializer_class = TypesSerializer


class UserparamsViewSet(viewsets.ModelViewSet):
    queryset = Userparams.objects.all()
    serializer_class = UserparamsSerializer


class TasksViewSet(viewsets.ModelViewSet):
    queryset = Tasks.objects.all()
    serializer_class = TasksSerializer


class UserTaskViewSet(viewsets.ModelViewSet):
    queryset = User_Task.objects.all()
    serializer_class = UserTaskSerializer
# Create your views here.
